package demo06;

public class Test {
    public static void main(String[] args) {
        Role role=new Role();

        role.setFs(new FaShuSkill() {
            @Override
            public void faShuAttack() {
                System.out.println("肉蛋冲击");
            }
        });
        role.faShuSKillAttack();

        role.setFs(new FaShuSkill() {
            @Override
            public void faShuAttack() {
                System.out.println("肾呛喜鲤");
            }
        });
        role.faShuSKillAttack();
    }
}
